package com.example.demo;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;

/**
 * @Company
 * @ClassName SpringbootdemoApplication
 * @Description
 *     EnableGlobalMethodSecurity: 开启spring security注解
 * @author tds
 * @Date 2022-04-06 22:21
 * @version 1.0.0
 */
@SpringBootApplication
@MapperScan("com.example.demo.mapper")
@EnableGlobalMethodSecurity(securedEnabled = true, prePostEnabled = true)
public class SpringbootdemoApplication {

    public static void main(String[] args) {
        SpringApplication.run(SpringbootdemoApplication.class, args);
    }

}
